module app.utils.RespCodeEnun;

/**
* 响应状态码枚举类
*/
public enum RespCodeEnun
{
    SUCCESS = 200,
    Created = 201,
    Bad_Request = 400,
    Unauthorized = 401,
    Forbidden = 403,
    Not_Found = 404,
    ERROR = 500,

    // 1000...  用户模块错误
    USERNAME_USED = 1001,
    PASSWORD_WRONG = 1002,
    USERNAME_NOT_EXIST = 1003,
    TOKEN_NOT_EXIST = 1004,
    TOKEN_RUNTIME = 1005,
    TOKEN_WRONG = 1006,
    TOKEN_TYPE_WRONG = 1007,
    USER_NO_RIGHT = 1008,

    // 2000...  文章模块错误
    ARTICLE_NOTEXIST = 2001,

    // 3000...  分类模块错误
    CATEGORYNAME_USED = 3001,
    CATEGORY_NOTEXIST = 3002,
}
